package cn.itcast.service.impl;

import java.util.List;

import cn.itcast.dao.ChapterDao;
import cn.itcast.dao.TextBookDao;
import cn.itcast.dao.impl.ChapterDaoImpl;
import cn.itcast.dao.impl.TextBookDaoImpl;
import cn.itcast.service.ChapterService;
import cn.itcast.vo.Chapter;
import cn.itcast.vo.TextBook;

public class ChapterServiceImpl implements ChapterService{
	private ChapterDao chapterDao;
	public ChapterServiceImpl(){
		chapterDao=new ChapterDaoImpl();
	}
	@Override
	public List<Chapter> getChapterByTextBookId(int id) {
		List<Chapter> list=chapterDao.getChapterByTextBookId(id);
		return list;
	}
	
	

}
